{* $Id$ *}
{include_core file="admin/lib/header.html" title="影投报表"}
<div class="page-header border-bottom clearfix">
    <h2 class="left">影投报表</h2>
</div>

<table class="list-table" style="margin-bottom: 15px;">
    <thead>
    <tr>
        <th>影院数量</th>
        <th>总进货金额</th>
    </tr>
    </thead>
    <tbody>
        <tr>
            <td>{if $data.store_num != 0}<a href="cinema_investment/admin/cinema_list">{$data.store_num}</a>{else}0{/if}</td>
            <td>{$data.purchase_money}元</td>
        </tr>
    </tbody>
</table>

<table class="list-table" style="margin-bottom: 20px;">
    <thead>
    <tr>
        <th>总订单</th>
        <th>已收货</th>
        <th>配送中</th>
        <th>撤销</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>{if $data.all_order_num != 0}<a href="cinema_investment/admin/order_list">{$data.all_order_num}</a>{else}0{/if}</td>
        <td>{if $data.receiver_order_num != 0}<a href="cinema_investment/admin/order_list?progress=10">{$data.receiver_order_num}</a>{else}0{/if}</td>
        <td>{if $data.deliver_order_num != 0}<a href="cinema_investment/admin/order_list?progress=5">{$data.deliver_order_num}</a>{else}0{/if}</td>
        <td>{if $data.cancel_order_num != 0}<a href="cinema_investment/admin/order_list?progress=15">{$data.cancel_order_num}</a>{else}0{/if}</td>
    </tr>
    </tbody>
</table>

<section id="month_map" style="height: 400px;"></section>
{load_js file='echarts/echarts.min.js'}
<script>
    var myChart = echarts.init(document.getElementById('month_map'));
    var option = {
        title: {
            text: '近半年进货金额/订单'
        },
        tooltip : {
            trigger: 'axis'
        },
        legend: {
            data:['进货金额','订单']
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis : {
            type: 'category',
            boundaryGap: false,
            data: []
        },
        yAxis : [
            {
                type : 'value',
            },
            {
                type : 'value',
            }
        ],
        series : [
            {
                name:'进货金额',
                type:'line',
                data:[]
            },
            {
                name:'订单',
                type:'line',
                yAxisIndex:1,
                data:[],
            }
        ]
    };

    option.xAxis.data = {$data.half_year};
    option.series[0].data = {$data.price_sum};
    option.series[1].data = {$data.order_sum};

    setTimeout(function(){
        myChart.setOption(option);
    }, 1000);
</script>
<!--end:列表-->
{include_core file="admin/lib/footer.html"}